package net.gyapp.markim.module.collect.vo;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.easyder.wrapper.core.model.BaseVo;

import net.gyapp.markim.module.collect.adapter.CollectAdapter;

import java.util.List;

/**
 * Author:  winds
 * Data:    2018/8/22
 * Version: 1.0
 * Desc:
 */


public class CollectionVo extends BaseVo {

    public String msg;
    public int code;
    public List<UserCollectionsBean> userCollections;

    public static class UserCollectionsBean implements MultiItemEntity {
        public int id;
        public int userId;
        public int collectionType;
        public Object collectionId;
        public String collectionName;
        public int collectionState;
        public long createTime;
        public UserInfoBean userInfo;
        public GroupInfoBean groupInfo;

        @Override
        public int getItemType() {
            switch (collectionType) {
                case 1:
                    return CollectAdapter.TYPE_CONTACT_GROUP;
                case 2:
                    return CollectAdapter.TYPE_CONTACT_USER;
            }
            return 0;
        }

        public static class UserInfoBean {
            public int userId;
            public String userName;
            public String userNumber;
            public String nick;
            public Object phone;
            public String password;
            public String salt;
            public Object email;
            public Object qq;
            public Object sign;
            public Object weixin;
            public String userAvatar;
            public Object userQrUrl;
            public int userType;
            public Object userLevelId;
            public Object userStatus;
            public String refereeId;
            public String deviceToken;
            public String createdTime;
            public String updatedTime;
        }
        public static class GroupInfoBean {
            public int groupId;
            public String groupName;
            public String groupNumber;
            public String groupAvatar;
            public String groupQrUrl;
            public String groupDescribe;
            public String groupNotice;

            public Object groupNoticeReadedCount;

            public String groupTitle;
            public String groupTitleDescribe;
            public String groupTitleUrl;
            public String groupKeywordsFilter;
            public int groupType;
            public int groupUserCount;
            public int groupStatus;


            public String groupVersion;
            public String groupLastChatedTime;
            public String createdTime;
            public String updatedTime;
            public int groupKeepSilence;
            public int groupKeepVoice;
            public int groupKeepVideo;
            public int groupKeepPicture;
            public int groupKeepWords;
            public int groupRobotCount;

        }
    }
}
